package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuMaterialMaster;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 变更主数据业务对象 manu_material_master
 *
 * @author Bin Liu
 * @date 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuMaterialMaster.class, reverseConvertGenerate = false)
public class ManuMaterialMasterBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 物料号
     */
    private String productCode;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 类别
     */
    private String categoryId;


}
